home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / GBOXFILL.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  50 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   GBOXFILL.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NBV1.INC"
  21. SCREEN 12
  22. CLS
  23. GraphicSETUP
  24. COLOR 7, 0
  25.  
  26. ? "┌─────────────────────────────────────────────────────────────────────────
  27. ? "│ GBoxFILL ( C1%, R1%, C2%, R2%, Mask$, Pmode?, Colour? )
  28. ? "│
  29. ? "│ PURPOSE: fill a rectangular area of the screen with a masked color
  30. ? "│  PARAMS:   C1% left-most column ( 0 -> 639 )
  31. ? "│            R1% top most row     ( 0 -> 479 )
  32. ? "│            C2% right most column
  33. ? "│            R2% bottom most row
  34. ? "│          Mask$ bit-mapped mask for ON/OFF pixels but "" = Solid border
  35. ? "│            Pm? PutMode          ( 0 ->  4  )
  36. ? "│             C? color number     ( 0 -> 15  )
  37. ? "└─────────────────────────────────────────────────────────────────────────
  38. DELAY 1                                       '┌─────────────────────────────
  39.                                               '│
  40. GBoxFill 270, 250, 369, 349, "", 3, 14        '│ draw a solid box
  41. DELAY 1                                       '│
  42. Mask$ = CHR$(119,221,119,221,119,221,119,221) '│ stripes
  43. GBoxFill 270, 250, 369, 349, Mask$, 2, 3      '│ XOR on a mask
  44. DELAY 1                                       '│
  45. GBoxFill 270, 250, 369, 349, Mask$, 2, 3      '│ XOR off the mask
  46.                                               '│
  47. WHILE NOT INSTAT : WEND                       '│ I'll get deeper into masks
  48. CLS                                           '│ when we hit DAS-NBV2
  49. SCREEN 0                                      '└────────────────────────────
  50.